import { createStore,useStore as baseUseStore, Store  } from 'vuex';
import { InjectionKey } from 'vue';

import state from './state';
import * as getters from './getters';
import  mutations from './mutations';
import  actions from './actions';



export const key: InjectionKey<Store<StoreTestModel.Base>> = Symbol()

export default createStore<StoreTestModel.Base>({
    state,
    getters,
    mutations,
    actions,
    modules: {
    }
})


export function useStore () {
    return baseUseStore(key)
  }